package com.weishu.core.service.impl;

import com.alibaba.fastjson.JSON;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.weishu.core.entity.JrRentInstallment;
import com.weishu.core.entity.JrRentInstallmentDetail;
import com.weishu.core.entity.vo.JrRentInstallmentVo;
import com.weishu.core.mapper.FinanceMapper;
import com.weishu.core.mapper.JrRentInstallmentMapper;
import com.weishu.core.service.FinanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.math.BigDecimal;
import java.text.ParseException;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class FinanceServiceImpl  extends ServiceImpl<JrRentInstallmentMapper, JrRentInstallment> implements FinanceService {
	@Autowired
	FinanceMapper financeMapper;

	@Override
	public List<JrRentInstallmentVo> searchLoans(JrRentInstallmentVo condition) {
		return financeMapper.searchJrRentInstallmentPage(condition);
	}

	@Override
	public JrRentInstallment selectInstallmentDetails(JrRentInstallmentVo jrRentInstallmentVo) {
		Long Id = jrRentInstallmentVo.getId();
		return financeMapper.selectInstallmentDetails(Id);
	}


}
